package com.autumn.web.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Import;

import com.autumn.web.configure.ServiceRequestContextConfiguration;

/**
 * 启用服务请求上下文
 * <p>
 * 启用后会检查在控制器或方法上有注解
 * { @link com.autumn.context.RequestServiceContextHolder } 每次请求头是否包含serviceId参数。
 * </p>
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2018-01-08 01:19:39
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import({ ServiceRequestContextConfiguration.class })
public @interface EnableServiceRequestContext {

}
